<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery-3.7.1.js"></script>
</head>
<body>
    <script>
        // 第一：定义对象
        var stu = {
            name:'张三',
            age:18,
            sex:'男'
        }

        // 第二：循环遍历对象 - 遍历对象属性和属性值
        $.each(stu,function(k,v){
            console.log(k + "-" + v);
        }) ;
       
        
        







    </script>
</body>
</html>